package com.study.talk.module.service;

import com.aliyun.dysmsapi20170525.models.SendSmsResponse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.study.talk.module.entity.Message;
import com.study.talk.module.entity.vo.PhoneSmsVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author thor
 * @since 2023-12-18
 */
public interface MessageService extends IService<Message> {

    void addMessage(Message message);

    List<Message> getMessageList(Integer userId);

    List<Message> getAllMessage(Integer userId);

    void deleteMessageList(Integer userId);

    SendSmsResponse sendSms(String phoneNumber,String code) throws Exception;

}
